/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question1.polymorphism.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

import za.ac.cput.pretorius.question1.polymorphism.service.impl.LoginServiceImpl;
import za.ac.cput.pretorius.question1.polymorphism.service.impl.PrinterServiceImpl;

/**
 *
 * @author griddy
 */
@Configurable
public class Config {
    
    @Bean(name="loginService")
    public LoginServiceImpl loginService ()
    {
        
        return new LoginServiceImpl();
    }
    
    @Bean(name="printerService")
    public PrinterServiceImpl printerService ()
    {
        
        return new PrinterServiceImpl();
    }
    
    
}
